package com.shaoyu.tools.testcase.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/novels")
public class NovelController {


    @RequestMapping("/getCategory")
    public List<Map<String,String>> categoryList(){
        Map<String, String> map = new HashMap<>();
        map.put("Item1","111");
        map.put("Item2","222");
        return Arrays.asList(map);
    }
}
